<div class="content">
    <div class="div-top">
        <span style="font-size: 20px;float:left;">{{menu_name}}</span>
        <div style="float:right;">
            <button ng-repeat="but in buttons" ng-click="clickBtn(but.event)" class="btn btn-{{but.style}}"><i
                    class="iconfont {{but.img}}"></i>&nbsp;{{but.name}}
            </button>
            <button ng-click="add()" type="button" class="btn btn-primary">
                <i class="iconfont icon-add"></i> 添加
            </button>
            <button ng-click="edit()" class="btn btn-warning">
                <i class="iconfont icon-update"></i> 修改
            </button>
            <button ng-click="remove()" class="btn btn-danger">
                <i class="iconfont icon-delete"></i> 删除
            </button>
            <button ng-click="goback()" class="btn btn-info">
                <i class="iconfont icon-back"></i> 返回
            </button>
        </div>
    </div>

    <form class="div-find form-inline">
        <div class="form-group">
            <label class="form-label">专业名称：</label>
            <input type="text" ng-model="form.name" class="form-control">
        </div>
        <div class="form-group">
            <label class="form-label">专业代码：</label>
            <input type="text" ng-model="form.code" class="form-control">
        </div>
        <button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询
        </button>
    </form>

    <div class="div-table">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th class="table-th-checkbox"><input type="checkbox" ng-click="checkAll($event.target)"/></th>
                <th column="id" class="sorting" ng-click="order($event.target)">代码</th>
                <th column="files_area" class="sorting" ng-click="order($event.target)">名称</th>
                <th column="comment" class="sorting" ng-click="order($event.target)">备注</th>
            </tr>
            </thead>
            <tbody ng-switch on="page.current_num">
            <tr ng-switch-when="0">
                <td colspan="100">查询无记录</td>
            </tr>
            <tr ng-repeat="row in rows" ng-click="optData($event.currentTarget)">
                <td>
                    <input type="checkbox" name="dataPk" value="{{row.id}}"/>
                </td>
                <td>{{row.code}}</td>
                <td>{{row.name}}</td>
                <td>{{row.comment}}</td>

            </tr>
            </tbody>
        </table>
    </div>
    <div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page"></div>
</div>